package com.sherllinhe.member.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能：
 * 作者：Sherllin He
 * 日期：2025/4/24 18:47
 */
@RestController
@RefreshScope
public class TestController {
    @Value("${test.nacos}")
    private String nacos;
    @GetMapping("/hello")
    public String hello() {
        return String.format("hello! %s", nacos);
    }
}
